﻿#region

using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using HouseHoldBudget.Framework.Mvc;

#endregion

namespace HouseHoldBudget.Models.Expenses
{
    public class ExpenseModel : MvcEntityModelBase
    {
        #region Constructors

        public ExpenseModel()
        {
            ExpenseType = new ExpenseTypesModel();
        }

        #endregion

        #region Instance Properties

        /// <summary>
        ///   Gets or sets the expense amount.
        /// </summary>
        /// <value> The expense amount. </value>
        [AllowHtml]
        [DataType(DataType.Currency)]
        public decimal ExpenseAmount { get; set; }

        /// <summary>
        ///   Gets or sets the expense label.
        /// </summary>
        /// <value> The expense label. </value>
        [AllowHtml]
        public string ExpenseLabel { get; set; }

        /// <summary>
        ///   Gets or sets the expense on.
        /// </summary>
        /// <value> The expense on. </value>
        //[AllowHtml]
        [DataType(DataType.Date)]
        public DateTime ExpenseOn { get; set; }

        /// <summary>
        ///   Gets or sets the type of the expense.
        /// </summary>
        /// <value> The type of the expense. </value>
        [UIHint("ExpenseTypeEditor")]
        public ExpenseTypesModel ExpenseType { get; set; }

        /// <summary>
        ///   Gets or sets the budget user.
        /// </summary>
        /// <value> The budget user. </value>
        public string UserFullName { get; set; }

        #endregion
    }
}